package com.googlecode.jpocketmod;

import com.googlecode.jpocketmod.actions.ActionFactory;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

public class JPocketModAppMenubar extends JMenuBar {
	private JMenu fileMenu, toolsMenu, helpMenu;
	
	public JPocketModAppMenubar()  {
		super();
		
		fileMenu = new JMenu("File");
		fileMenu.add(ActionFactory.getInstance().getLoadTemplateAction());
		fileMenu.add(ActionFactory.getInstance().getSaveTemplateAction());
		fileMenu.addSeparator();
		fileMenu.add(ActionFactory.getInstance().getExitApplicationAction());
		
		toolsMenu = new JMenu("Tools");
		toolsMenu.add(ActionFactory.getInstance().getCreatePageAction());
		
		helpMenu = new JMenu("Help");
		helpMenu.add(new JMenuItem("About JPocketMod"));
		
		this.add(fileMenu);
		this.add(toolsMenu);
		this.add(helpMenu);
	}
}
